package org.jeecg.modules.test.seata.order.factory;

import org.jeecg.modules.test.seata.order.feign.fallback.ProductClientFallback;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * @Description: SysBaseAPIFallbackFactory
 * @author: jeecg-boot
 */
@Component
public class ProductClientFallbackFactory implements FallbackFactory<ProductClientFallback> {

    @Override
    public ProductClientFallback create(Throwable throwable) {
        ProductClientFallback fallback = new ProductClientFallback();
        fallback.setCause(throwable);
        return fallback;
    }
}